/**
 * Alibaba.com.cn Inc.
 * Copyright (c) 2004-2021 All Rights Reserved.
 */
package com.yongbao.model.vo.manual;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author zhanghong
 * @version NearbyOrderVO.java, v 0.1 2024/3/31 22:10 下午 NearbyOrderVO Exp $$
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("附近订单响应模型")
public class NearbyOrderVO {
    @ApiModelProperty("订单数量")
    private Integer orderCount;
    @ApiModelProperty("菜品份数")
    private Long dishCount;
    @ApiModelProperty("附近自提点")
    private List<TakeVO> takeList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    @ApiModel("附近订单自提点响应模型")
    public static class TakeVO {
        @ApiModelProperty("距离")
        private Double distance;
        @ApiModelProperty("地址")
        private String address;
        @ApiModelProperty("订单id")
        private Long orderId;
        @ApiModelProperty("地址前缀")
        private String addressPrefix;
    }
}
